<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../../js/jquery.min.js"></script>
	</head>
	<body>
		<div id="rtnData">返回数据</div>
		<div id="itemPrice">商品价格</div>
		<div id="itemId">商品编号</div>
	</body>
	<script>
		var jsonstr='[{"p":"6299.00","op":"6299.00","cbf":"0","id":"J_100006487373","m":"6499.00"},{"p":"-1.00","op":"799.00","cbf":"0","id":"J_1411014","m":"1398.00"}]';
		var data=JSON.parse(jsonstr);//把网站返回json字符串，转成js对象 
		//$("#rtnData").text(jsonstr);  	//div.innerText  
		$("#rtnData").text("返回数据:"+JSON.stringify(data));//js对象转json字符串
		//价格颜色变红色：div.innerHTML(javascript写法).html(JQuery写法)
		// $("#itemPrice").text("商品价格:"+data[0].p);
		$("#itemPrice").html("商品价格:<font color=\"red\">"+data[0].p+"</font>");
		$("#itemId").text("商品编号:"+data[0].id.substring(2));
	</script>
</html>